package com.wolf.gulimall.auth.config;


import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * web配置类
 */
@Configuration
public class GuLiMallWebConfig implements WebMvcConfigurer {

    /**
     * 视图印射
     *
     * @param registry 印射条件
     */
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        //这里不能进行自定义逻辑处理
//        registry.addViewController("/login.html").setViewName("login");
        registry.addViewController("/reg.html").setViewName("reg");
    }
}
